//
//  PlaceDescription.h
//  Places
//
//  Created by alex on 9/21/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "PlaceAnnotation.h"


@interface PlaceDescriptionController : UIViewController <UITextFieldDelegate, UITextViewDelegate> {
	IBOutlet UITextField *titleField;
	IBOutlet UITextField *subtitleField;
	IBOutlet UITextView *descriptionField;

	IBOutlet UIBarButtonItem *backButton;
	IBOutlet UIBarButtonItem *editButton;
	
	PlaceAnnotation *annotation;
	
	BOOL isEditing;
}

@property (nonatomic, retain) UITextField *titleField;
@property (nonatomic, retain) UITextField *subtitleField;
@property (nonatomic, retain) UITextView *descriptionField;
@property (nonatomic, retain) UIBarButtonItem *backButton;
@property (nonatomic, retain) UIBarButtonItem *editButton;

@property (nonatomic, retain) PlaceAnnotation *annotation;

- (IBAction)backToMap;
- (IBAction)editAnnotation;
- (IBAction)saveChanges;
- (IBAction)deleteAnnotation;

@end
